{% extends "BmbUserBundle::layout.html.twig" %}

{% trans_default_domain 'FOSUserBundle' %}

{% block fos_user_content %}
{% if error %}
    <div>{{ error|trans }}</div>
{% endif %}

<div class="title">
	Je me connecte
</div>
<form action="{{ path("fos_user_security_check") }}" method="post">
    <input type="hidden" name="_csrf_token" value="{{ csrf_token }}" />
	<p>
    <label for="username">{{ 'security.login.username'|trans }}</label>
    <input type="text" id="username" name="_username" value="{{ last_username }}" required="required" />
	</p>
	<p>
    <label for="password">{{ 'security.login.password'|trans }}</label>
    <input type="password" id="password" name="_password" required="required" />
	</p>
    <input type="checkbox" id="remember_me" name="_remember_me" value="on" />
    <label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
	<br />
    <input type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}" />
	<a href="{{ path('fos_user_resetting_request') }}">MDP oubli&eacute; ?</a>
	<br />
	Pas encore de compte ? <a href="{{ path('fos_user_registration_register') }}">Je m'inscris</a>
</form>
{% endblock fos_user_content %}
